"""测试配置."""

import pytest
from fastapi import FastAPI
from fastapi.testclient import TestClient

from app.server import create_app


@pytest.fixture
def app():
    """测试应用."""
    return create_app()


@pytest.fixture
def client(app: FastAPI):
    """测试客户端."""
    with TestClient(app) as client:
        yield client
